package com.hcb.tonguetiphealth.manager;

import android.os.Handler;
import android.os.Message;

/**
 * 所有系统接口抽象父类
 * 
 * @author 008
 * 
 */
public abstract class AbstractManager {

    private Handler handler;

    public void sendMsg(int arg1) {
        if (null != handler) {
            Message msg = handler.obtainMessage();
            msg.arg1 = arg1;
            msg.sendToTarget();
        }
    }

    public Handler getHandler() {
        return handler;
    }

    public void setHandler(Handler handler) {
        this.handler = handler;
    }

}
